package com.llp.declaresystem.domain;

/**
 * @BelongsProject: declare-system
 * @BelongsPackage: com.llp.declaresystem.domain
 * @Author: bovan
 * @Date: 2022/11/24 15:01
 * @Description:
 */
public class Result<T> {
    private Integer code;
    private T data;
    private String msg;


    //统一接口
    //构造函数
    public Result(Integer code,String msg,T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}